﻿using System.Collections.Generic;

namespace User.Api.Dto.Bill
{
    public class CreateBillOrderResponse : BaseResponse
    {
        public CreateBillOrderResponse()
        {
            ClinRecipeOrderItems = new List<ClinRecipeOrderItem>();
            ClinPayPrepareInfos = new List<ClinPayPrepareInfo>();
        }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 勾选的处方单总金额
        /// </summary>
        public string SelectedTotalAmt { get; set; }

        /// <summary>
        /// 勾选的处方单自费金额
        /// </summary>
        public string SelectedSelfAmt { get; set; }

        /// <summary>
        /// 勾选的处方单社保支付金额
        /// </summary>
        public string SelectedSbPayAmt { get; set; }

        public List<ClinRecipeOrderItem> ClinRecipeOrderItems { get; set; } 

        public List<ClinPayPrepareInfo> ClinPayPrepareInfos { get; set; }

        public class ClinRecipeOrderItem
        {
            /// <summary>
            /// 处方标识
            /// </summary>
            public string RecipeId { get; set; }

            /// <summary>
            /// 病人每次就诊的ID
            /// </summary>
            public string FlowNo { get; set; }

            /// <summary>
            /// 诊疗卡号
            /// </summary>
            public string CardNo { get; set; }

            /// <summary>
            /// 病人名称
            /// </summary>
            public string PatName { get; set; }

            /// <summary>
            /// 就诊时间
            /// </summary>
            public string CureDate { get; set; }

            /// <summary>
            /// 科室代码
            /// </summary>
            public string DeptHisCode { get; set; }

            /// <summary>
            /// 科室
            /// </summary>
            public string DeptName { get; set; }

            /// <summary>
            /// 医生代码
            /// </summary>
            public string DocHisCode { get; set; }

            /// <summary>
            /// 医生
            /// </summary>
            public string DocName { get; set; }
            /// <summary>
            /// 费用类别:自费/顺德医保
            /// </summary>
            public string PayType { get; set; }

            /// <summary>
            /// 处方类型:西药/中药/治疗等
            /// </summary>
            public string RecipeType { get; set; }

            /// <summary>
            /// 总金额
            /// </summary>
            public string TotalAmt { get; set; }

            /// <summary>
            /// 自费金额
            /// </summary>
            public string SelfAmt { get; set; }

            /// <summary>
            /// 社保报销金额
            /// </summary>
            public string SbPayAmt { get; set; }
        }

        public class ClinPayPrepareInfo
        {
            /// <summary>
            /// 病人每次就诊的ID
            /// </summary>
            public string FlowNo { get; set; }

            /// <summary>
            /// 病人名称
            /// </summary>
            public string PatName { get; set; }

            /// <summary>
            /// 科室代码
            /// </summary>
            public string DeptHisCode { get; set; }

            /// <summary>
            /// 科室
            /// </summary>
            public string DeptName { get; set; }

            /// <summary>
            /// 医生代码
            /// </summary>
            public string DocHisCode { get; set; }

            /// <summary>
            /// 医生
            /// </summary>
            public string DocName { get; set; }

            /// <summary>
            /// 处方Id
            /// </summary>
            public string RecipeId { get; set; }

            /// <summary>
            /// 费用类别
            /// </summary>
            public string PayType { get; set; }

            /// <summary>
            /// 总金额
            /// </summary>
            public string TotalAmt { get; set; }

            /// <summary>
            /// 自费金额
            /// </summary>
            public string SelfAmt { get; set; }

            /// <summary>
            /// 社保报销金额
            /// </summary>
            public string SbPayAmt { get; set; }
        }
    }
}